package com.ruoyi.discuss.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 话题对象 bigtopic
 *
 * @author ruoyi
 * @date 2023-12-14
 */
public class Bigtopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 话题ID */
    private Long topicid;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userid;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likescount;

    /** 课程 */
    @Excel(name = "课程")
    private String subject;

    public void setTopicid(Long topicid)
    {
        this.topicid = topicid;
    }

    public Long getTopicid()
    {
        return topicid;
    }
    public void setUserid(Long userid)
    {
        this.userid = userid;
    }

    public Long getUserid()
    {
        return userid;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLikescount(Long likescount)
    {
        this.likescount = likescount;
    }

    public Long getLikescount()
    {
        return likescount;
    }
    public void setSubject(String subject)
    {
        this.subject = subject;
    }

    public String getSubject()
    {
        return subject;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("topicid", getTopicid())
            .append("userid", getUserid())
            .append("title", getTitle())
            .append("content", getContent())
            .append("likescount", getLikescount())
            .append("subject", getSubject())
            .toString();
    }
}
